//加载公共样式
require('../../assets/css/public.less')
//加载自己的样式
require('./countdown.less');

let count = document.querySelector('.count')
window.onload = () => {
    let num = 3
    // 倒计时
    let numId = setInterval(() => {
        num--
        if (num > 0) {
            count.textContent = num
        } else if (num === 0) {
            count.textContent = 'GO'

        } else {
            clearInterval(numId)
            window.location.href = './runing.html'
        }
    }, 1000)
}
